package com.flyco.modules.system.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 人员关系
 * @Author: flyco
 * @Date:   2023-07-13
 * @Version: V1.0
 */
@Data
@TableName("sys_user_relation")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_user_relation对象", description="人员关系")
public class SysUserRelation {
    
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private Integer id;
	/**人员*/
	@Excel(name = "人员", width = 15)
    @ApiModelProperty(value = "人员")
	private Long userid;
	/**上级管理人员*/
	@Excel(name = "上级管理人员", width = 15)
    @ApiModelProperty(value = "上级管理人员")
	private Long parentUserId;
	/**与升级管理人员关系 1 总监*/
	@Excel(name = "与上级管理人员关系 1 总监", width = 15)
    @ApiModelProperty(value = "与升级管理人员关系 1 总监")
	private Integer relation;
	/**创建人员名称*/
	@Excel(name = "创建人员名称", width = 15)
    @ApiModelProperty(value = "创建人员名称")
	private String createBy;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private Date createTime;
	/**updateTime*/
	@Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
	private Date updateTime;
	/**1 有效  0 无效*/
	@Excel(name = "1 有效  0 无效", width = 15)
    @ApiModelProperty(value = "1 有效  0 无效")
	private Integer status;
}
